﻿<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Register TagPrefix="wssuc" TagName="InputFormSection" src="~/_controltemplates/15/InputFormSection.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="InputFormControl" src="~/_controltemplates/15/InputFormControl.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="ButtonSection" src="~/_controltemplates/15/ButtonSection.ascx" %>
<%@ Register Tagprefix="wssawc" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>


<%@ Assembly Name="Microsoft.Web.CommandUI, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="spcfr.aspx.cs" Inherits="RioLinx.SharePoint.Responsive.Foundation.CreatePage" DynamicMasterPageFile="~masterurl/default.master" %>

<asp:Content ID="PageHead" ContentPlaceHolderID="PlaceHolderAdditionalPageHead" runat="server">
<% SPSite spServer = SPControl.GetContextSite(Context); SPWeb spWeb = SPControl.GetContextWeb(Context); %>
<head>
	<meta name="GENERATOR" content="Microsoft SharePoint"/>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
	<meta http-equiv="Expires" content="0"/>
	
	<title id="onetidTitle"><SharePoint:EncodedLiteral runat="server" text="<%$Resources:wss,pagetitle_sharepoint%>" EncodeMethod='HtmlEncode'/></title>
<SharePoint:CssLink runat="server"/>
	<SharePoint:Theme runat="server"/>
<SharePoint:ScriptLink name="init.js" language="javascript" runat="server" />
<SharePoint:ScriptLink  name="core.js" language="javascript" runat="server" />
<SharePoint:CustomJSUrl runat="server" />
<link type="text/xml" rel='alternate' href="_vti_bin/spdisco.aspx" />
</head>
<script type="text/javascript">
    // <![CDATA[
    var strImagePath = "../15/Images/RWD/";
    function DoValidateAndSubmit()
    {
        var form = document.frmWebPage;
        form["Title"].value = TrimSpaces(form["Title"].value);
        if (form["Title"].value.length < 1)
        {
            var L_alert1_Text = "You must specify a non-blank value for Name.";
            window.alert(L_alert1_Text);
            form["Title"].focus();
            return false;
        }
        if (IndexOfIllegalCharInUrlLeafName(form["Title"].value) >= 0)
        {
            var L_IllegalChar_Text = "The file name contains invalid characters. Type another file name using valid characters.";
            window.alert(L_IllegalChar_Text);
            return false;
        }
        var index = document.frmWebPage.onetidDocLibIDSelect.selectedIndex;
        var ListValue = document.frmWebPage.onetidDocLibIDSelect.options[index].value;
        if (ListValue == "")
        {
            var L_NoDocumentLibary_Text = "No document library is selected for the save location.";
            alert(L_NoDocumentLibary_Text);
            return false;
        }
        return true;
    }
    function DoTemplateOptionChange()
    {ULSEhF:;
        var frmWebPage = document.forms.<%SPHttpUtility.NoEncode(Form.ClientID,Response.Output);%>;
    var index = frmWebPage.WebPartPageTemplate.selectedIndex;
    frmWebPage.PreviewImage.src = strImagePath + frmWebPage.WebPartPageTemplate.options[index].value + ".gif";
    frmWebPage.PreviewImage.alt = frmWebPage.WebPartPageTemplate.options[index].text;
}

// ]]>
</script>
</asp:Content>

<asp:Content ID="Main" ContentPlaceHolderID="PlaceHolderMain" runat="server">
  <TABLE class="ms-main" cellpadding="0" cellspacing="0" border="0" width="100%" height="100%">
    <!-- Banner -->
    
<TR> 
<TD valign=top height=100% > </TD>
    <!-- Page overview -->
    <td><IMG SRC="/_layouts/images/blank.gif" width=10 height=1 alt=""></td>
    <td style="padding-top: 2px" valign="top" width="100%"> <table cellpadding=2 cellspacing=0><tr><td><IMG SRC="/_layouts/images/blank.gif" width=1 height=1 alt=""></td></tr></table>
      <TABLE  border="0" cellpadding="0" cellspacing="0" width="100%" id="diidPageOverview">
    <!-- New form UI -->
        <TR>
          <TD>
<FORM id="frmWebPage" onsubmit="return DoValidateAndSubmit();">

<table  border="0" width="100%" cellspacing="0" cellpadding="0" id="Table1">
	<wssuc:InputFormSection runat="server"
		Title="<%$Resources:wss,webpagecreation_Name_Title%>"
		Description ="<%$Resources:wss,webpagecreation_newwp_name_description%>"
		TopBorder="False">
		<Template_InputFormControls>
			<wssuc:InputFormControl LabelText="<%$Resources:wss,multipages_Name%>" runat="server">
				<Template_Control>
					 <table border="0" cellspacing="1">
						<tr>
							<td nowrap="nowrap">
								<span dir="ltr">
								<input id="onetidListTitle" type="Text" title="<SharePoint:EncodedLiteral runat='server' text='<%$Resources:wss,webpagecreation_name_title%>' EncodeMethod='HtmlEncode'/>" name="Title" maxlength="123"/> <span dir="ltr" class="ms-authoringcontrols">.aspx</span>
								</span>
							</td>
						</tr>
						<tr>
							<td class="ms-authoringcontrols" nowrap="nowrap">
                            <asp:CheckBox id="OverwriteCheckBox"  ToolTip="<%$Resources:wss,webpagecreation_overwrite%>" Text="<%$Resources:wss,webpagecreation_overwrite_text%>" runat="server"/>
							</td>
						</tr>
					</table>
				</Template_Control>
			</wssuc:InputFormControl>
            <wssuc:InputFormControl runat="server" LabelText="Page Display Title:">
                <Template_control>
                <wssawc:InputFormTextBox  CssClass="ms-input" ID="txtPageDisplayTitle" Columns="35" Runat="server" MaxLength="255" ToolTip="Enter the page title" />
                </Template_control>
		    </wssuc:InputFormControl>
		</Template_InputFormControls>
	</wssuc:InputFormSection>
</table>
<table  border="0" width="100%" cellspacing="0" cellpadding="0" id="Table3">
    <wssuc:InputFormSection runat="server" Title="<%$Resources:wss,webpagecreation_layout_title%>">
		<Template_Description>
			<table border="0" cellpadding="1" cellspacing="0">
				<tr>
					<td class="ms-descriptiontext">
						<SharePoint:EncodedLiteral ID="EncodedLiteral1" runat="server" text="<%$Resources:wss,webpagecreation_layout_description%>" EncodeMethod='HtmlEncode'/>
					</td>
				</tr>
				<tr><td class="ms-descriptiontext" height="20"><img src="/_layouts/15/images/blank.gif?rev=23" width='1' height='1' alt="" /></td></tr>
				<tr><td align="center" class="ms-descriptiontext" height="6"><img src="/_layouts/15/Images/rwd/bs2_banded.gif" alt="Basic Responsive Page" id="onetidPreviewImage" name="PreviewImage"/></td></tr>
				<tr><td class="ms-descriptiontext" height="6"><img src="/_layouts/15/images/blank.gif?rev=23" width='1' height='1' alt="" /></td></tr>
			</table>
		</Template_Description>
		<Template_InputFormControls>
			<wssuc:InputFormControl runat="server" LabelText="<%$Resources:wss,webpagecreation_layout_choosetemplate%>"	>
				<Template_Control>
							 <SELECT id="SELECT1" name="WebPartPageTemplate" size="12" onchange="DoTemplateOptionChange()">
                               <OPTION value="bs2_banded" selected="true">Banded Layout for Bootstrap 2</OPTION>
                               <OPTION value="bs2_banner">Banner Layout for Bootstrap 2</OPTION>
                               <OPTION value="bs2_blog">Blog Layout for Bootstrap 2</OPTION>
                               <OPTION value="bs2_orbit">Orbit Layout for Bootstrap 2</OPTION>
                               <OPTION value="bs2_sidebar">Sidebar Layout for Bootstrap 2</OPTION>
                               <OPTION value="bs2_workspace">Workspace Layout for Bootstrap 2</OPTION>
                               <OPTION value="bs3_banded">Banded Layout for Bootstrap 3</OPTION>
                               <OPTION value="bs3_banner">Banner Layout for Bootstrap 3</OPTION>
                               <OPTION value="bs3_blog">Blog Layout for Bootstrap 3</OPTION>
                               <OPTION value="bs3_orbit">Orbit Layout for Bootstrap 3</OPTION>
                               <OPTION value="bs3_sidebar">Sidebar Layout for Bootstrap 3</OPTION>
                               <OPTION value="bs3_workspace">Workspace Layout for Bootstrap 3</OPTION>
                               <OPTION value="found4_banded">Banded Layout for Foundation 4</OPTION>
                               <OPTION value="found4_banner">Banner Layout for Foundation 4</OPTION>
                               <OPTION value="found4_blog">Blog Layout for Foundation 4</OPTION>
                               <OPTION value="found4_orbit">Orbit Layout for Foundation 4</OPTION>
                               <OPTION value="found4_sidebar">Sidebar Layout for Foundation 4</OPTION>
                               <OPTION value="found4_workspace">Workspace Layout for Foundation 4</OPTION>
                             </SELECT>
				</Template_Control>
			</wssuc:InputFormControl>
		</Template_InputFormControls>
	</wssuc:InputFormSection>
</table>

<table  border="0" width="100%" cellspacing="0" cellpadding="0" id="Table5">
    <wssuc:InputFormSection runat="server" Title="<%$Resources:wss,webpagecreation_save_title%>" Description="<%$Resources:wss,webpagecreation_newwp_save_description%>">
		<Template_InputFormControls>
			<wssuc:InputFormControl runat="server" LabelText="<%$Resources:wss,webpagecreation_doclib%>">
				<Template_Control>
					   <table border="0" cellspacing="1" id="Table4">
						 <tr>
						   <td>
						    <SELECT id="onetidDocLibIDSelect" runat="server"/>
						   </td>
						 </tr>						 
					   </table>
				</Template_Control>
			</wssuc:InputFormControl>
		</Template_InputFormControls>
	</wssuc:InputFormSection>
</table>

<table  border="0" width="100%" cellspacing="0" cellpadding="0" id="Table6">
<wssuc:ButtonSection runat="server">
		<Template_Buttons>
		<asp:PlaceHolder runat="server">
		<input id="onetidCreate" class="ms-ButtonHeightWidth" type="submit" value="<SharePoint:EncodedLiteral runat='server' text='<%$Resources:wss,multipages_createbutton_text%>' EncodeMethod='HtmlEncode'/>" accesskey="<SharePoint:EncodedLiteral runat='server' text='<%$Resources:wss,okbutton_accesskey%>' EncodeMethod='HtmlEncode'/>" />
		</asp:PlaceHolder>
		</Template_Buttons>
	</wssuc:ButtonSection>
</table>

<!-- Name -->
        <%--   <TABLE  border="0" width="100%" cellspacing="0" cellpadding="0" id="Table2">
                   <%--<TR><TD class="ms-sectionline" height="1" colspan="4"><IMG SRC="/_layouts/images/blank.gif" width=1 height=1 alt=""></TD></TR>
                   <TR>
                     <TD nowrap rowspan="3"></TD>
                     <TD class="ms-descriptiontext" rowspan="3" valign="top"  id="align02">
                       <TABLE border="0" cellpadding="1" cellspacing="0" id="Table3">
                         <TR><TD class="ms-sectionheader" height="28" valign="top" id="200">Name</TD></TR>
                         <TR>
                           <TD id="onetidNameDescription" class="ms-descriptiontext">
                                 Type a file name for your Web Part Page.  The file name appears in headings and links throughout the site. 
                           </TD>
                         </TR>
                       </TABLE>
                       <IMG SRC="/_layouts/images/blank.gif" width=275 height=1 alt="">
                     </TD>
                     <TD height="3" colspan="2" class="ms-authoringcontrols"><IMG SRC="/_layouts/images/blank.gif" width=1 height=1 alt=""></TD></TR>
                   </TR>
                   <TR>
                     <TD class="ms-authoringcontrols" width="10">&nbsp;</TD>
                     <TD class="ms-authoringcontrols" id="400">
                       Name:<BR>
                       <TABLE border="0" cellspacing="1">
                         <TR>
                           <TD>&nbsp;</TD>
                           <TD>
                             <INPUT id="onetidListTitleOld" type="Text" title="Name" name="TitleOld" maxLength="123"><SPAN class="ms-authoringcontrols">.aspx</SPAN>
                           </TD>
                         </TR>
                         <TR>
                           <TD>&nbsp;</TD>
                           <TD class="ms-authoringcontrols">
                             <asp:CheckBox id="OverwriteCheckBoxOld" title="Overwrite" runat="server"/>
                             Overwrite if file already exists?
                           </TD>
                         </TR>
                       </TABLE>
                     </TD>
                   </TR>
                   <TR><TD class="ms-authoringcontrols" colspan="2" height="6"><IMG SRC="/_layouts/images/blank.gif" width=1 height=1 alt=""></TD></TR>
                   <TR><TD colspan="2">&nbsp;</TD><TD class="ms-authoringcontrols" colspan="2" height="21">&nbsp;</TD></TR>--%>
    <!-- Layout -->  
<%--                   <TR><TD class="ms-sectionline" height="1" colspan="4"><IMG SRC="/_layouts/images/blank.gif" width=1 height=1 alt=""></TD></TR>
                   <TR>
                     <TD nowrap rowspan="3"></TD>
                     <TD class="ms-descriptiontext" rowspan="3" valign="top"  id="align03">
                       <TABLE border="0" cellpadding="1" cellspacing="0" id="Table5">
                         <TR><TD class="ms-sectionheader" height="28" valign="top" id="500">Layout</TD></TR>
                         <TR>
                           <TD id="onetidLayoutDescription" class="ms-descriptiontext">
                                 Select a layout template to arrange Web Parts in zones on the page. Multiple Web Parts can be added to each zone. Specific zones allow Web Parts to be stacked in a horizontal or vertical direction, which is illustrated by differently colored Web Parts. If you do not add a Web Part to a zone, the zone collapses (unless it has a fixed width) and the other zones expand to fill unused space when you browse the Web Part Page.
                           </TD>
                         </TR>
                        <TR><TD class="ms-descriptiontext" height="20"><IMG SRC="/_layouts/images/blank.gif" width=1 height=1 alt=""></TD></TR>
                        <TR><TD align="center" class="ms-descriptiontext" height="6"><img src="/_layouts/15/Images/rwd/sprwd_banded.gif" alt="Basic Responsive Page" id="onetidPreviewImage" name="PreviewImage"/></TD></TR>
                        <TR><TD class="ms-descriptiontext" height="6"><IMG SRC="/_layouts/images/blank.gif" width=1 height=1 alt=""></TD></TR>
                       </TABLE>
                     </TD>
                     <TD height="3" colspan="2" class="ms-authoringcontrols"><IMG SRC="/_layouts/images/blank.gif" width=1 height=1 alt=""></TD></TR>
                   </TR>
                   <TR>
                     <TD class="ms-authoringcontrols" width="10">&nbsp;</TD>
                     <TD class="ms-authoringcontrols" id="700" valign="top">Choose a Layout Template:<FONT size="3">&nbsp;</FONT><BR>
                       <TABLE border="0" cellspacing="1" id="Table6">
                         <TR>
                           <TD>&nbsp;</TD>
                           <TD>
                             <!-- Assuming the templates are named spstdN.aspx and the image files are named as spstdN.gif, where N is from 9 to 12 -->
                             <!-- 0 to 8 are used by the default web part page layouts provided by SharePoint 2010. So we start from 9 -->
                             <SELECT id="onetidWebPartPageTemplate" name="WebPartPageTemplate" size="6" onchange="DoTemplateOptionChange()">
                               <OPTION value="_banded" selected="true">Banded Layout</OPTION>
                               <OPTION value="_banner">Banner Layout</OPTION>
                               <OPTION value="_blog">Blog Layout</OPTION>
                               <OPTION value="_orbit">Orbit Layoutr</OPTION>
                               <OPTION value="_sidebar">Sidebar Layout</OPTION>
                               <OPTION value="_workspace">Workspace Layout</OPTION>
                             </SELECT>
                           </TD>
                           <TD>&nbsp;</TD>
                         </TR>
                       </TABLE>
                     </TD>
                   </TR>
                   <TR><TD class="ms-authoringcontrols" colspan="2" height="6"><IMG SRC="/_layouts/images/blank.gif" width=1 height=1 alt=""></TD></TR>
                  <TR><TD colspan="2">&nbsp;</TD><TD class="ms-authoringcontrols" colspan="2" height="21">&nbsp;</TD></TR>--%>
    <!-- Save Location -->
                   <%--<TR><TD class="ms-sectionline" height="1" colspan="4"><IMG SRC="/_layouts/images/blank.gif" width=1 height=1 alt=""></TD></TR>
                   <TR>
                     <TD nowrap rowspan="3"></TD>
                     <TD class="ms-descriptiontext" rowspan="3" valign="top"  id="align04">
                       <TABLE border="0" cellpadding="1" cellspacing="0" id="Table7">
                         <TR><TD class="ms-sectionheader" height="28" valign="top" id="800">Save Location</TD></TR>
                         <TR>
                           <TD id="onetidSaveLocationDescription" class="ms-descriptiontext">
                                 Select the document library where you want the Web Part Page to be saved.
                           </TD>
                         </TR>
                       </TABLE>
                     </TD>
                     <TD height="3" colspan="2" class="ms-authoringcontrols"><IMG SRC="/_layouts/images/blank.gif" width=1 height=1 alt=""></TD></TR>
                   </TR>
                   <TR>
                     <TD class="ms-authoringcontrols" width="10">&nbsp;</TD>
                     <TD class="ms-authoringcontrols" id="900" valign="top"><label for="onetidDocLibIDSelect">Document Library</label>:<FONT size="3">&nbsp;</FONT><BR>
                       <TABLE border="0" cellspacing="1" id="Table8">
                         <TR>
                           <TD>&nbsp;</TD>
                           <TD>
                             <SELECT id="onetidDocLibIDSelect" runat="server"/>
                           </TD>
                           <TD>&nbsp;</TD>
                         </TR>
                         <TR>
                           <TD>&nbsp;</TD>
                           <TD class="ms-authoringcontrols">
                             <asp:Label id="onetidCreateDocLibLabel" runat="server"/><a id="onetidCreateDocLibLink"  runat="server"/>
                           </TD>
                           <TD>&nbsp;</TD>
                         </TR>
                       </TABLE>
                     </TD>
                   </TR>
                   <TR><TD class="ms-authoringcontrols" colspan="2" height="6"><IMG SRC="/_layouts/images/blank.gif" width=1 height=1 alt=""></TD></TR>
                   <TR><TD colspan="2">&nbsp;</TD><TD class="ms-authoringcontrols" colspan="2" height="21">&nbsp;</TD></TR>--%>
  <!--OK/Cancel-->
               <%--<TR><TD colspan="4" valign="top" height="25"><hr size="1"></TD></TR>
               <TR><TD colspan=4> <TABLE cellpadding=0 cellspacing=0 width=100%> <COLGROUP> <COL width=99%> <COL width=1%> </COLGROUP> <TR> <TD>&nbsp;</TD> <TD nowrap id=align06>
                  <asp:button ID="btnCreate" text="   Create   " AccessKey="C" CssClass="ms-ButtonHeightWidth" OnClick="btnCreate_Click" runat="server"/>
                  <INPUT id="onetidClose" class="ms-ButtonHeightWidth" type="button" onclick="window.parent.history.back()" value="   Cancel   ">
                  <SharePoint:FormDigest ID="FormDigest1" runat=server/>
               </TD> </TR> </TABLE> </TD></TR>
               <TR><TD colspan="4" height="60">&nbsp;</td></TR>
             </TABLE>
             <TD width="10px">&nbsp;</TD>
            </FORM>
          </TD>
        </TR>
      </TABLE>
    </TD>
    </TR> 
  </TABLE>--%>

</asp:Content>

<asp:Content ID="PageTitle" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
Create Responsive Web Part Pages
</asp:Content>

<asp:Content ID="PageTitleInTitleArea" ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea" runat="server" >
Create Responsive Web Part Pages
</asp:Content>

